<?php include 'header.php' ?>
    <div id="wrapper" class="wrapper clear">
        <?php include 'bread.php' ?>
        <section id="blog-list" class="main"><? foreach ($blogList['blog'] as $b): ?>
                <article class="blog-list-item" id="blog-<?= $b->id ?>">
                    <a class="blog-comment" href="<?= $baseUrl . 'post/' . $b->id . '.html#comment' ?>"><?= $b->commentNum ?><span class="bar"></span></a>
                    <header class="blog-title">
                        <h3><a href="<?= $baseUrl . 'post/' . $b->id . '.html' ?>"><?= $b->title ?></a></h3>
                    </header>
                    <span class="blog-create-time"><?= date('m.d', $b->createTime) ?></span>
                    <section class="blog-desc"><?= htmlspecialchars_decode($b->desc) ?></section>
                </article>
            <? endforeach ?>
            <div class="pager" id="blog-page">
            <span class="count"><?=$blogList['count']['begin'] . ' - ' . $blogList['count']['end'] . ' / '. $blogList['count']['all']?></span>
                <? for ($i = 1; $i <= $blogList['count']['pages']; $i++): ?>
                    <? if ($i === $blogList['count']['current']): ?>
                        <a class="page current" href="<?= $baseUrl . $pageUrl . $i . '/' ?>"><?= $i ?></a>
                    <? else: ?>
                        <a class="page" href="<?= $baseUrl . $pageUrl . $i . '/' ?>"><?= $i ?></a>
                    <? endif ?>
                <? endfor ?>
            </div>
        </section>
        <?php include 'side.php' ?>
    </div>
<?php include 'footer.php' ?>